package org.diffshop.product.service;

import com.baomidou.mybatisplus.extension.service.IService;
import org.diffshop.common.utils.PageUtils;
import org.diffshop.product.entity.PmsAttrEntity;
import org.diffshop.product.entity.ProductAttrValueEntity;
import org.diffshop.product.vo.BaseAttrs;

import java.util.List;
import java.util.Map;

/**
 * spu属性值
 *
 * @author tjf
 * @date 2024-05-13 10:35:49
 */
public interface ProductAttrValueService extends IService<ProductAttrValueEntity> {

    PageUtils queryPage(Map<String, Object> params);

    void saveProductAttrBatch(Long spuId, List<BaseAttrs> baseAttrs);

    List<ProductAttrValueEntity> queryBaseAttrBySpuId(Long spuId);

    void update(Long spuId, List<ProductAttrValueEntity> attrValueEntities);
}

